import {http} from '../request'

// 2、定义登录函数接口
export default{
   
   addToCart (skuId,skuNum){
       return http({
           url: `/api/cart/addToCart/${skuId}/${skuNum}`,
           method: 'get',
       })
   },
   cartList (){
       return http({
           url: `/api/cart/cartList`,
           method: 'get',
       })
   },
   cartPage (pageNo,pageSize,sortFieldMap){
       return http({
           url: `/api/cart/cartPage/${pageNo}/${pageSize}`,
           method: 'post',
   		data:sortFieldMap
       })
   },
   deleteCart (skuId){
       return http({
           url: `/api/cart/deleteCart/${skuId}`,
           method: 'get',
       })
   }
}